/**
 * @description sequelize 同步数据库
 * @author 刘煎蛋
 */

const seq = require('./seq');

require('./model/index')

seq.authenticate().then( _ => {
    console.log( 'auth ok' )
}).catch( _ => {
    console.log( 'auth err' )
})

seq.sync({ force: true }).then( _ => {
    console.log('sync ok');
    process.exit();
})